package com.mmm.station;


import com.mmm.station.security.utils.CommonBean;
import com.mmm.station.security.utils.RedisBean;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;


@ComponentScan
@ComponentScan("com.mmmm.station")
@EnableConfigurationProperties({RedisBean.class,CommonBean.class})
@MapperScan("com.mmm.station")
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
@ServletComponentScan
public class StationApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(StationApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {

        return builder.sources(StationApplication.class);
    }




}
